package com.example.project1.fragment;

import org.xutils.x;
import org.xutils.view.annotation.Event;
import org.xutils.view.annotation.ViewInject;

import com.example.project1.R;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

public class HuJiao_wuliao_Fragment extends Fragment{
	@ViewInject(value=R.id.wuliao2_fragment)
	private RelativeLayout rl_fragment;
	@ViewInject(value=R.id.ll_hujiao)
	private LinearLayout ll_layout;
	@ViewInject(value=R.id.btn_ysj_hujiao)
	private Button btn_ysj;
	@ViewInject(value=R.id.btn_yp_hujiao)
	private Button btn_yp;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
		Bundle savedInstanceState) {
	View view=inflater.inflate(R.layout.hujiao_wuliao_fragment, null);
	x.view().inject(this, view);
	
	setListener();
	
	return view;
}

private void setListener() {
	btn_ysj.setOnClickListener(new BtnListener());
	btn_yp.setOnClickListener(new BtnListener());
}

class BtnListener implements OnClickListener{

	@Override
	public void onClick(View v) {
		switch(v.getId()){
		case R.id.btn_ysj_hujiao:
			rl_fragment.setVisibility(View.VISIBLE);
			ll_layout.setVisibility(View.INVISIBLE);
			break;
		case R.id.btn_yp_hujiao:
			break;
		case R.id.btn_yp2_hujiao:
			break;
		}
	}
	
}
}
